home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / emacs_src_18_58.lha / emacs-18.58 / src / amiga.h < prev    next >
C/C++ Source or Header  |  1992-08-16  |  5KB  |  146 lines

  1.  
  2. /* Prototypes for functions defined in amiga_clipboard.c */
  3. void syms_of_amiga_clipboard(void);
  4. void early_clipboard(void);
  5. void init_clipboard(void);
  6. void cleanup_clipboard(void);
  7.  
  8. /* Prototypes for functions defined in amiga_dump.c */
  9. void map_out_data(char *fn);
  10. void map_in_data(int load);
  11. extern void *far first_fn, *far last_fn;
  12.  
  13. /* Prototypes for functions defined in amiga_menu.c */
  14. void suspend_menus(void);
  15. int resume_menus(void);
  16. void syms_of_amiga_menu(void);
  17. void init_amiga_menu(void);
  18. void cleanup_amiga_menu(void);
  19.  
  20. /* Prototypes for functions defined in amiga_processes.c */
  21. /* Simulation of unix processes & signals */
  22. int wait_for_termination(int pid);
  23. int wait_without_blocking(void);
  24. char *amiga_path(void);
  25. void init_amiga_processes(void);
  26. void cleanup_amiga_processes(void);
  27.  
  28. /* Prototypes for functions defined in amiga_rexx.c */
  29. int check_arexx(int force, int kbd);
  30. void init_amiga_rexx(void);
  31. void cleanup_amiga_rexx(void);
  32. void syms_of_amiga_rexx(void);
  33.  
  34. /* Prototypes for functions defined in amiga_screen.c */
  35. extern struct Window *emacs_win;
  36. void get_window_size(int *widthp, int *heightp);
  37. void reset_window(void);
  38. void force_window(void);
  39. void add_wbevent(struct WBArg *wbarg);
  40. void check_window(int force);
  41. void setup_intchar(char intchar);
  42.  
  43. void start_count(int n);
  44. void stop_count(int n);
  45. void suspend_count(int n);
  46. void resume_count(int n);
  47. int disp_counts(void);
  48.  
  49. void screen_puts(char *str, unsigned int len);
  50. void syms_of_amiga_screen(void);
  51. void init_amiga_screen(void);
  52. void cleanup_amiga_screen(void);
  53.  
  54. /* Prototypes for functions defined in amiga_serial.c */
  55. void init_amiga_serial(void);
  56. void cleanup_amiga_serial(void);
  57. void check_serial(int force);
  58. void serial_puts(char *str, int len);
  59. unsigned long serial_baud_rate(void);
  60.  
  61. /* Prototypes for functions defined in amiga_sysdep.c */
  62. extern int selecting;
  63.  
  64. int set_exclusive_use(int fd);
  65. int sys_suspend(void);
  66. char *get_system_name(void);
  67. char *expand_path(char *path, char *buf, int len);
  68. int syms_of_amiga(void);
  69. void cleanup_amiga(void);
  70. void amiga_undump_reinit(void);
  71. void *early_xmalloc(long size);
  72. void *early_xrealloc(void *old, long size);
  73.  
  74. /* Failure stuff */
  75. void wbmessage(char *msg);
  76. void fail(char *cause);
  77. void fail_nomem(void);
  78. void _fail_internal(char *file, int line);
  79. #define fail_internal() _fail_internal(__FILE__, __LINE__);
  80. enum exit_method { use_exit, use_xcexit, use_safe };
  81. extern enum exit_method amiga_fail_exit;
  82.  
  83. #define MALLOC_HUNK_SIZE 92000 /* Default malloc hunk size */
  84. extern long malloc_hunk_size; /* Amount of memory malloc'ed by a to-be-dumped emacs */
  85. extern long malloc_bytes_used;    /* Amount of this hunk actually used */
  86. extern long far pre_alloc;    /* amount of memory to reserve for emacs */
  87. extern int puresize;        /* Size of pure hunk */
  88.  
  89. /* Various special values used to find the beginning & end of the text, data,
  90.    bss and malloc segments. */
  91. extern int first_data, last_data, first_bss, last_bss;
  92. extern void first_function(), last_function();
  93. extern char *malloc_hunk;
  94. extern int amiga_initialized;    /* True once Emacs has been undumped or initialised */
  95. struct mem_header        /* sizeof() must be multiple of 4 ! */
  96. {
  97.     struct mem_header *next, *prev;
  98.     long size;
  99.     /* Data follows */
  100. };
  101. extern struct mem_header *free_list;
  102.  
  103.  
  104. /* Prototypes for functions defined in amiga_term.c */
  105. int amiga_term_init(void);
  106.  
  107. /* Prototypes for functions defined in amiga_tty.c */
  108. extern struct timeinfo *far odd_timer;
  109. extern unsigned long odd_sig;
  110. int setpgrp_of_tty(int pid);
  111. int init_sigio(void);
  112. int reset_sigio(void);
  113. int request_sigio(void);
  114. int unrequest_sigio(void);
  115. int tabs_safe_p(void);
  116. int get_screen_size(int *widthp, int *heightp);
  117. int init_baud_rate(void);
  118. void check_intuition(void);
  119. #define AMIGASEQ 256 /* When passed to enque, insert the Amiga sequence introducer
  120.                 C-x C-^ */
  121. void enque(unsigned int c, int meta);
  122. int init_sys_modes(void);
  123. int reset_sys_modes(void);
  124. void amiga_consume_input(void);
  125. int discard_tty_input(void);
  126. void emacs_fflush(struct _iobuf *f);
  127. void emacs_putchar(int c);
  128. void emacs_output(char *str, int size);
  129. void emacs_fwrite(char *str, unsigned int nblocks, unsigned int len, FILE *f);
  130. void syms_of_amiga_tty(void);
  131. void init_amiga_tty(void);
  132. void cleanup_amiga_tty(void);
  133. void early_amiga_tty(void);
  134. void amiga_term_open(void);
  135. /* Signal mask used to detect available keyboard input.
  136.    Must be set by amiga_serial or amiga_screen */
  137. extern unsigned long inputsig;
  138.  
  139. /* Prototypes for functions defined in amiga_unix.c */
  140. void MemCleanup(void);
  141. char *malloc(long size);
  142. int free(void *p);
  143. char *calloc(long n, long size);
  144. char *realloc(char *p, long size);
  145. void emacs_malloc_init(void);
  146.